package com.sugon.modules.analyse.model.vo;

import lombok.Data;

import java.io.Serializable;

/**
 * @description: 设备报警时间TOP统计VO
 * @author: YuXD
 * @create: 2020-05-24 17:05
 **/
@Data
public class DevAlarmTimeTopStatItemVO implements Serializable {

    /**
     * 设备ID
     */
    private String devId;

    /**
     * 报警配置ID
     * 报警码报警或者布尔报警配置ID
     */
    private String alarmId;

    /**
     * 报警码
     */
    private String alarmCode;

    /**
     * 报警内容
     */
    private String alarmMsg;

    /**
     * 报警次数
     */
    private Integer times;

    /**
     * 报警累计时长
     */
    private Long alarmDuration;

    public DevAlarmTimeTopStatItemVO(String devId, String alarmCode, String alarmMsg, Long alarmDuration) {
        this.devId = devId;
        this.alarmCode = alarmCode;
        this.alarmMsg = alarmMsg;
        this.times = 1;
        this.alarmDuration = alarmDuration;
    }

}
